const sequelize = require('../DB/db');
const Sequelize = require('sequelize');

const Menu = sequelize.define('t_menu', {
    fid: {
        type: Sequelize.STRING,
        field: 'f_id',
        primaryKey: true
    },
    fName: {
        type: Sequelize.STRING,
        field: 'f_name'
    },
    fParentId: {
        type: Sequelize.STRING,
        field: 'f_parent_id'
    },
    fSort: {
        type: Sequelize.STRING,
        field: 'f_sort'
    },
    fIcon: {
        type: Sequelize.STRING,
        field: 'f_icon'
    },
    fUrl: {
        type: Sequelize.STRING,
        field: 'f_url'
    },
    fEnable: {
        type: Sequelize.INTEGER,
        field: 'f_enable'
    },
}, {
    freezeTableName: true,
    createdAt: false,
    updatedAt: false,
})

module.exports = Menu;